<script src="../lib/jquery-1.8.2.min.js"></script>
<script src="../lib/laycode/laycode.js"></script>
<div class="laycode" style="width: 100%;float: left;height: auto;margin:0px;padding:0px;">
    <pre class="code">
/* urlencode
var busicode = "475f170f-a726-4c9a-b371-0ef4c7f0e219";
var where = "CSDT1,CSDT2,CSDT3";
var url = "http://xx.xx.xx/?busicode="+encodeURIComponent(busicode)+"&where="+encodeURIComponent(where);
document.write(url);
*/
var busicode = "475f170f-a726-4c9a-b371-0ef4c7f0e219";
var where = "CSDT1,CSDT2,CSDT3";
var en_busicode = base64encode(busicode);
var en_where = base64encode(where);
var url = "http://xx.xx.xx/?busicode="+en_busicode+"&where="+en_busicode;
document.write(url);
    </pre>
</div>
<div>
    <span>加密结果</span><br/>
    <span id="result"></span>
</div>
<link rel="stylesheet" href="../lib/laycode/laycode.css"/>
<script src="base64-encrypt.js"></script>
<script>
    /* urlencode
    var busicode = "475f170f-a726-4c9a-b371-0ef4c7f0e219";
    var where = "CSDT1,CSDT2,CSDT3";
    var url = "http://xx.xx.xx/?busicode="+encodeURIComponent(busicode)+"&where="+encodeURIComponent(where);
    document.write(url);
    */
    $('.code').laycode({
        title: '我的代码',
        width:'100%',
        height: 'auto'
    });
    var busicode = "475f170f-a726-4c9a-b371-0ef4c7f0e219";
    var where = "CSDT1,CSDT2,CSDT3";
    var en_busicode = base64encode(busicode);
    var en_where = base64encode(where);
    var url = "http://xx.xx.xx/?busicode="+en_busicode+"&where="+en_busicode;
    //输出结果
    $("#result").text(url);
</script>